home *** CD-ROM | disk | FTP | other *** search
- property linha, posicaoMinima, posicaoMaxima
- property spr
-
- on getBehaviorDescription
- return "Num ponto do scroll aparece sprite"
- end
-
- on getPropertyDescriptionList
- set p_list = [ ¬
- #posicaoMinima: [ #comment: "Posicao minima do scroll para aparecer", ¬
- #format: #integer, ¬
- #default: 1000 ],¬
- #posicaoMaxima: [ #comment: "Posicao maxima do scroll para aparecer", ¬
- #format: #integer, ¬
- #default: 1200 ]¬
- ]
- return p_list
- end
-
-
- on beginSprite me
- set spr = the spriteNum of me
- set linha = 0
- set the visibility of sprite spr to false
- end
-
- on scrollLinha me, linhas
- set linha = linha + linhas
- if linha > posicaoMinima and linha < posicaoMaxima then
- set the visibility of sprite spr to true
- else
- set the visibility of sprite spr to false
- end if
- end